<?php
// Identifier
class JS_VarNode extends JS_Node {
	
	protected $id;
	
	public function __construct($id,$val=null) {
		parent::__construct($val);
		$this->id = $id;
	}
	
	public function getIdentifier() {
		return $this->id;
	}
	
	public function setValue(&$val) {
		$this->val = $val;
	}
	
	public function interpret() {
		return $this->val;
	}
	
	public function __toString() {
		return $this->id . ' = ' . $this->val;
	}
	
}

?>